package com.tianfeng.huayi.service.impl;

import com.tianfeng.huayi.entity.HousingInfo;
import com.tianfeng.huayi.entity.Property;
import com.tianfeng.huayi.mapper.PropertyMapper;
import com.tianfeng.huayi.service.IPropertyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PropertyServiceImpl implements IPropertyService {

    @Autowired
    private PropertyMapper propertyMapper;

    @Override
    public Property selectPropertyByPropertyId(Long propertyId) {
        return propertyMapper.selectPropertyByPropertyId(propertyId);
    }

    @Override
    public List<Property> selectPropertyList(Property property) {
        return propertyMapper.selectPropertyList(property);
    }

    @Override
    public int updateProperty(Property property) {
        return propertyMapper.updateProperty(property);
    }

    @Override
    public HousingInfo selectHousingByHousingId(Long housingId) {
        return propertyMapper.selectHousingByHousingId(housingId);
    }
}
